 <?php 
 if(isset($this->data) && is_array($this->data) && count($this->data))
{
 	foreach($this->data as $data=>$item)
 	{
 		$id = $item['id'];
 		?>
 		<h2>Edit Help</h2>
	    <div class="tabBox">
	      <form  action="<?php echo $this->url(array('module' => 'admin' , 'controller' => 'help' , 'action' => 'editlist','id'=>$id),'default',true);?>" method="post" id="frmListeditHelp" ENCTYPE="multipart/form-data">
	        <div class="content">
	           <div class="tabContent" id="tabContent">
				 
					<table>
					<tr>
						<td align="left">
							<label for="title">Title :<font color="red"><strong>*</strong></font></label>
						</td>
						<td align="left" colspan="2">
							<input type="text" size="50" id="name" name="title" value="<?php echo isset($item['title'])? $item['title']:''?>"/>
						</td>
					</tr>
					  </span>
					<tr>
						<td align="left">
							<label for="description" class="description">Description :</label>
						</td>
						<td align="left" colspan="2">
							<textarea rows="10" cols="100" id="description" name="description" ><?php echo isset($item['description'])? $item['description']:'';?>
							</textarea>
						</td>
					</tr>
					<tr>
						<td align="left">
							<label for="text" class="text">Text :</label>
						</td>
						<td align="left" colspan="2">
							<textarea rows="10" cols="100" id="text" name="text"><?php echo isset($item['content'])? trim($item['content'],''): '' ;?>
							</textarea>
						</td>
					</tr>
					<tr>
						<td align="left">
							<label for="image" class="image">Image :</label>
						</td>
						<td align="left">
							<input type="file" name="image" id="image" /> 
						</td>
						<td>
							<?php if(isset($item['image'])&& count($item['image'])>0){?>
							<img alt="" src="<?php echo $this->BaseUrl().'/data/uploads/help/'.$item['image']?>"  />
							<?php }?>
						</td>
					</tr>
					<tr>
						<td align="left">
							<label for="video" class="video">Video :</label>
						</td>
						<td align="left" colspan="2">
							<input type="text" id="video" name="video" value="<?php echo isset($item['video'])? $item['video'] : '';?>" />
						</td>
					</tr>
					
					<tr>
						<td align="left">
							<label for="order" class="order">Order :</label>
						</td>
						<td align="left" colspan="2">
							<input type="text" id="order" name="order" size="2" value="<?php echo isset($item['order'])? $item['order']: '';?>" />
						</td>
					</tr>
						
						<tr>
						<td align="left">
							<label for="published">Published :</label>
						</td>
						<td align="left" colspan="2">
							<input type="checkbox" id="published" name="published" <?php  echo $item['status']==1 ? 'checked=checked': '';?>/>
						</td>
					</tr>
				  </table>
				 
			  </div>
	         <p>
		          <a  class="blueBtn" href="<?php echo $this->url(array('module' => 'admin' , 'controller' => 'help' , 'action' => 'index'),'default',true);?>" >Cancel</a>
		           <input type="submit" class="greenBtn" title="Save" value ="Save"/> 
	        </p>
	        </div>
	      </form>
	    </div>
 <?php
	}
 }?>
    
